import { api } from './request'

const requestApi = {
  queryDeptList: '/user/queryDeptList',
  queryDeptUserList: '/user/queryDeptUserList',
  addUserDept: '/user/addUserDept',
  updateUserDept: '/user/updateUserDept',
  deleteUserDept: '/user/deleteUserDept',
  queryDropdownRoleList: '/user/queryDropdownRoleList',
  queryCurrentFrontDept: '/user/queryCurrentFrontDept',
  addUserInfo: '/user/addUserInfo',
  updateUserInfo: '/user/updateUserInfo',

  addRoleInfo: '/user/addRoleInfo',
  updateRoleInfo: '/user/updateRoleInfo',
  queryRoleList: '/user/queryRoleList',
  deleteRole: '/user/deleteRole',
  queryRoleDetail: '/user/queryRoleDetail',
  queryUserDetail: '/user/queryUserDetail',

  queryOperationLogList: '/user/queryOperationLogList',

  queryExchangeRateList: '/basicData/queryExchangeRateList', // 美元汇率查询
  addExchangeRate: '/basicData/addExchangeRate', // 美元汇率新增
  queryContainerTypeList: '/basicData/queryContainerTypeList', // 箱型查询
  addContainerType: '/basicData/addContainerType', // 箱型新增
  editContainerType: '/basicData/editContainerType', // 箱型修改
  queryPortList: '/basicData/queryPortList', // 港口列表查询
  addPort: '/basicData/addPort', // 港口新增
  editPort: '/basicData/editPort', // 港口修改

  // 货名字典
  insertGoodsData: '/basicData/insertGoodsData', // 查询货名字典
  updateGoodsData: '/basicData/updateGoodsData', // 查询货名字典
  queryGoodsData: '/basicData/queryGoodsData', // 查询
  deleteGoodsData: '/basicData/deleteGoodsData',
  checkGoodsName: '/basicData/checkGoodsName',
  queryParams: '/basicData/queryParams', // 费用修改控制查询
  editParams: '/basicData/editParams' // 费用修改控制 修改
}
export default requestApi

// 货名字典
export const insertGoodsData = (data) => api(requestApi.insertGoodsData, data)
export const updateGoodsData = (data) => api(requestApi.updateGoodsData, data)
export const queryGoodsData = (data) => api(requestApi.queryGoodsData, data)
export const deleteGoodsData = (data) => api(requestApi.deleteGoodsData, data)
export const checkGoodsName = (data) => api(requestApi.checkGoodsName, data)

// 人员组织架构
export const queryDeptList = (data) => api(requestApi.queryDeptList, data)
export const queryDeptUserList = (data) => api(requestApi.queryDeptUserList, data)
export const addUserDept = (data) => api(requestApi.addUserDept, data)
export const updateUserDept = (data) => api(requestApi.updateUserDept, data)
export const deleteUserDept = (data) => api(requestApi.deleteUserDept, data)
export const queryDropdownRoleList = (data) => api(requestApi.queryDropdownRoleList, data)
export const queryCurrentFrontDept = (data) => api(requestApi.queryCurrentFrontDept, data)
export const addUserInfo = (data) => api(requestApi.addUserInfo, data)
export const updateUserInfo = (data) => api(requestApi.updateUserInfo, data)

// 角色管理
export const queryRoleList = (data) => api(requestApi.queryRoleList, data)
export const addRoleInfo = (data) => api(requestApi.addRoleInfo, data)
export const updateRoleInfo = (data) => api(requestApi.updateRoleInfo, data)
export const deleteRole = (data) => api(requestApi.deleteRole, data)
export const queryRoleDetail = (data) => api(requestApi.queryRoleDetail, data)
export const queryUserDetail = (data) => api(requestApi.queryUserDetail, data)

// 操作日志
export const queryOperationLogList = (data) => api(requestApi.queryOperationLogList, data)

// 字典
export const queryExchangeRateList = (data) => api(requestApi.queryExchangeRateList, data)
export const addExchangeRate = (data) => api(requestApi.addExchangeRate, data)
export const queryContainerTypeList = (data) => api(requestApi.queryContainerTypeList, data)
export const addContainerType = (data) => api(requestApi.addContainerType, data)
export const editContainerType = (data) => api(requestApi.editContainerType, data)
export const queryPortList = (data) => api(requestApi.queryPortList, data)
export const addPort = (data) => api(requestApi.addPort, data)
export const editPort = (data) => api(requestApi.editPort, data)

// 1.2
export const queryParams = (data) => api(requestApi.queryParams, data)
export const editParams = (data) => api(requestApi.editParams, data)
